{% extends "admin/base_site.html" %}
{% load i18n admin_modify adminmedia %}

{% block page-title %}{% blocktrans with performance as performance %}Vote for {{ performance }}{% endblocktrans %}{% endblock %}

{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="../../jsi18n/"></script>
{% for js in javascript_imports %}{% include_admin_script js %}{% endfor %}
{% endblock %}
{% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %}
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block userlinks %}<a href="../../doc/">{% trans 'Documentation' %}</a> / <a href="../../password_change/">{% trans 'Change password' %}</a> / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
{% block breadcrumbs %}{% if not is_popup %}
<div class="breadcrumbs">
     <a href="../../">{% trans "Home" %}</a> &rsaquo;
     {% blocktrans with performance as performance %}Vote for {{ performance }}{% endblocktrans %}
</div>
{% endif %}{% endblock %}
{% block content %}<div id="content-main">
<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
<div>
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if form.errors %}
    <p class="errornote">
    {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
    </p>
{% endif %}


<fieldset class="module aligned">
{% for field in form %}
  <div class="form-row {% if field.errors %}errors{% endif %} " >
  {{ field.errors }}
  <label for="id_{{ field.name }}" class="required">{{ field.label|capfirst }}:</label>
  {{ field }}
  {% if field.help_text %}
    <p class="help">{{ field.help_text }}</p>
  {% endif %}
  </div>
{% endfor %}
</fieldset>


<div class="submit-row">
<input type="submit" value="{% trans 'Vote now' %}" class="default" />
</div>


 <script type="text/javascript">document.getElementById("id_first_name").focus();</script>
</div>
</form></div>
{% endblock %} 